<%@ Page Language="C#" MasterPageFile="~/Presentacion/MasterPage.master" AutoEventWireup="true" CodeFile="TomarAsistencia.aspx.cs" Inherits="TomarAsistencia" Title="Tomar Asistencia" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:UpdatePanel runat="server" id="UpdPnl_TomarAsistencia">
        <ContentTemplate>
            <br>
            <table width="80%">
                <tr>
                    <td colspan="3">
                        <asp:Label id="lblTitulo" runat="server" Font-Size="Large" Font-Bold="true"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <br>
                    </td>
                </tr>
            </table>
            <div class="divBorderOnly">
                <table width="80%">
                    <tr>
                        <td colspan="1" style="width: 50px"></td>
                        <td colspan="1" style="width: 50px"></td>
                        <td colspan="1" style="width: 50px"></td>
                        <td colspan="1" style="width: 50px"></td>
                        <td colspan="1" style="width: 50px"></td>
                        <td colspan="1" style="width: 50px"></td>
                        <td colspan="1" style="width: 80px"></td>
                    </tr>
                    <tr>
                        <td colspan="1">
                            <asp:Label id="lblActProgramada" runat="server" cssclass="label" Text="Actividad Programada"></asp:Label>&nbsp; 
                        </td>
                        <td colspan="4">
                            <asp:DropDownList ID="ddlActProgramada" runat="server" CssClass="combo" Width="95%" AutoPostBack="True" onselectedindexchanged="ddlActProgramada_SelectedIndexChanged" ></asp:DropDownList>
                        </td>
                        <td colspan="1">
                            <asp:Button id="btnConsultar" runat="server" CssClass="btn" Text="<%$ Resources:Resource,btnConsultar %>" OnClick="btnConsultar_Click" Width="80px"></asp:Button>
                        </td>
                        <td rowspan="2" align="left" valign="middle">
                            <asp:ImageButton runat="server" ID="ImgLimpiar" CausesValidation="False" ImageUrl="../images/clear.png" CommandName="LimpiarControles" Width="40" Height="40" onclick="ImgLimpiar_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="1">
                            <asp:Label id="lblPeriodo" runat="server" cssclass="label" Text="Periodo"></asp:Label>&nbsp; 
                        </td>
                        <td colspan="1">
                            <asp:TextBox ID="txtPeriodo" runat="server" CssClass="label" Width="40px" Enabled="False"></asp:TextBox>
                        </td>
                        <td colspan="1">
                            <asp:Label id="lblEstado" runat="server" cssclass="label" Text="Estado"></asp:Label> 
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="txtEstado" runat="server" CssClass="label" Enabled="False" Width="90%"></asp:TextBox>
                        </td>
                        <td colspan="1">
                            <asp:Button id="btnSalir" onclick="btnSalir_Click" runat="server" CssClass="btn" Text="Salir" CausesValidation="False" Width="80px"></asp:Button>&nbsp;
                        </td>
                    </tr>
                </table>
            </div>
            <asp:Panel id="pnlMensaje" runat="server" Visible="false" Width="336px">
                <table width="100%">                
                    <tr>
                        <td align="center">
                            <asp:Label ID="lblMensaje" CssClass="labelContent" runat="server" Text="<%$ Resources:Resource,msg_ResultadoInvalido %>"></asp:Label>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel id="pnlParticipantes" runat="server" Visible="false"> 
                <table>                                                                                                       
                    <tr>
                        <td>
                            <asp:GridView id="gvParticipantes" runat="server" OnPageIndexChanging="gvParticipantes_PageIndexChanging" CellPadding="2" AutoGenerateColumns="False" OnRowCommand="gvParticipantes_RowCommand" AllowPaging="True">
                                <Columns>
                                    <asp:BoundField DataField="CodHermano" HeaderText="Codigo">
                                        <HeaderStyle Width="50pt" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Nombres" HeaderText="Nombres">
                                        <HeaderStyle Width="200pt" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Apellidos" HeaderText="Apellidos">
                                        <ItemStyle HorizontalAlign="Left" />
                                        <HeaderStyle Width="200pt" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Descripcion" HeaderText="Cuadrilla">
                                        <HeaderStyle Width="150pt" />
                                        <ItemStyle HorizontalAlign="Left" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="SEL.">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkAsistencia" runat="server" Checked='<%#Eval("itemChecked") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle CssClass="gridItem" HorizontalAlign="Center"></RowStyle>
                                <EditRowStyle CssClass="gridItem" HorizontalAlign="Center"></EditRowStyle>
                                <PagerStyle CssClass="gridItem"></PagerStyle>
                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" BackColor="#993399" ForeColor="White" ></HeaderStyle>
                                <AlternatingRowStyle CssClass="gridItem"></AlternatingRowStyle>
                            </asp:GridView> 
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel id="pnlOpciones" runat="server">
                <table width="100%">
                    <tr>
                        <td  colspan="1" align="center" width="150px">
                            <asp:Button id="btnCerrarActividad" onclick="btnCerrarActividad_Click" 
                                CssClass="btn" Text="Cerrar Actividad" Runat="server" Width="120px"></asp:Button>
                        </td>
                        <td  colspan="1" align="center" width="150px">
                            <asp:Button id="btnImprimir" onclick="btnImprimir_Click" CssClass="btn" 
                                Text="Imprimir" Runat="server" Width="120px"></asp:Button>
                        </td>
                        <td  colspan="1" align="center" width="150px">
                            <asp:Button id="btnGrabar" onclick="btnGrabar_Click" CssClass="btn" 
                                Text="Grabar" Runat="server" Width="120px"></asp:Button>
                        </td>
                        <td  colspan="1" align="center">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="4">
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                <ProgressTemplate>
                                    <img src="../images/load.gif" alt="Cargando..."/>
                                    <asp:Label ID="lblEspera" runat="server" CssClass="label" Text="Un momento por favor..."></asp:Label>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>    
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="HeadContent">
    <style type="text/css">
        .style3
        {
            width: 90px;
        }
        .combo
        {}
        .label
        {
            margin-right: 0px;
        }
    </style>
</asp:Content>
